package com.hxy.dao;

import com.github.pagehelper.PageInfo;
import com.hxy.pojo.Branch;
import com.hxy.pojo.model.BranchDatas;
import com.hxy.pojo.vo.BranchVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BranchMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Branch record);

    Branch selectByPrimaryKey(Integer id);

    List<BranchVo> selectAllPagerBranch(BranchDatas branchDatas);

    int updateByPrimaryKey(Branch record);

    BranchVo selectOneBranchInfo(Integer id);

    int updateOneBranchInfo(BranchVo branchVo);

    int addOneBranchInfo(BranchVo branchVo);

    int selectBranchNameNumByName(@Param("branchname")String branchname,@Param("bid") Integer bid);

    int selectBranchPhoneNumByName(@Param("bphone") String bphone, @Param("bid") Integer bid);
}